<template>
    <div>
        A组件
    </div>
</template>

<script>
export default {
    mounted() {
        this.$bus.$on('toHome', (res) => {
            console.log(res, 'a组件')
        })
    },
}
</script>